projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2927218
)
spinbutton: Set GDK_SCROLL_MASK explicitly
author
Carlos Garnacho
<carlosg@gnome.org>
Thu, 23 Feb 2012 13:46:47 +0000
(14:46 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 1 Mar 2012 21:29:00 +0000
(16:29 -0500)
selecting for button press/release doesn't suffice anymore to
get scroll events.
gtk/gtkspinbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkspinbutton.c
b/gtk/gtkspinbutton.c
index 020d9fb22377eb3c5a6765436b838946d1c04c54..e3caddff84bd14549b2f44a79c57bf7b8d599df8 100644
(file)
--- a/
gtk/gtkspinbutton.c
+++ b/
gtk/gtkspinbutton.c
@@
-679,6
+679,8
@@
gtk_spin_button_init (GtkSpinButton *spin_button)
context = gtk_widget_get_style_context (GTK_WIDGET (spin_button));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_SPINBUTTON);
+
+ gtk_widget_add_events (GTK_WIDGET (spin_button), GDK_SCROLL_MASK);
}
static void